﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GroupThreeMESProject.Entity
{
    /// <summary>
    /// 设备表
    /// </summary>
    public class MesEquipment
    {
        /// <summary>
        /// 设备id
        /// </summary>
        [Key]
        public int EquipmentId { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public EquipmentType? EquipmentTypeName { get; set; }
        /// <summary>
        /// 设备父级id
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 设备用途
        /// </summary>
        public EquipmentUse? EquipmentUseName { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string? EquipmentName { get; set; }
        /// <summary>
        /// 批号前缀
        /// </summary>
        public string? Lotprefix { get; set; }
        /// <summary>
        /// 批号类型
        /// </summary>
        public LotType? LotTypeName { get; set; }
        /// <summary>
        /// 设备状态
        /// </summary>
        public bool EquipmentState { get; set; }
        /// <summary>
        /// 财产所属
        /// </summary>
        public string? Property { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        public string? Affiliation { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? EquipmentDate { get; set; }
        /// <summary>
        /// 保养
        /// </summary>
        public bool? Maintenance { get; set; }
        /// <summary>
        /// 加载
        /// </summary>
        public bool? Load { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; }
        /// <summary>
        /// 设备描述
        /// </summary>
        public string? EquipmentInfo { get; set; }

       

    }
    /// <summary>
    /// 设备类型
    /// </summary>
    public enum EquipmentType
    {
        固定,
        流动,
        其他
    }
    /// <summary>
    /// 设备用途
    /// </summary>
    public enum EquipmentUse
    {
        玻璃原料,
        玻璃杯模具,
        加热炉,
        冷却设备,
        磨边机,
        喷砂
    }
    /// <summary>
    /// 批号类型
    /// </summary>
    public enum LotType
    {
        年月日班,
        年月日时分秒
    }
}
